/*    */ package com.qmsk.business.message.customerMessageType.dao;
/*    */ 
/*    */ import com.qmsk.business.sys.basic.SupportDAO;
/*    */ import com.utils.gson.out.GsonEbRst;
/*    */ import java.sql.SQLException;
/*    */ import java.util.HashMap;
/*    */ import java.util.Map;
/*    */ import org.springframework.stereotype.Repository;
/*    */ 
/*    */ @Repository
/*    */ public class CustomerMessageTypeDAO extends SupportDAO
/*    */ {
/*    */   public Boolean checkExisted(String openId, Long typeId)
/*    */     throws SQLException
/*    */   {
/* 16 */     Map params = new HashMap();
/* 17 */     params.put("openId", openId);
/* 18 */     params.put("typeId", typeId);
/* 19 */     return queryForBoolean("checkExisted", params, Boolean.valueOf(false));
/*    */   }
/*    */ 
/*    */   public int getSubNum(String openId) throws SQLException {
/* 23 */     Map params = new HashMap();
/* 24 */     params.put("openId", openId);
/* 25 */     return queryForInt("getSubNum", params, Integer.valueOf(0)).intValue();
/*    */   }
/*    */ 
/*    */   public GsonEbRst getMessageTypeList(String openId, Boolean flag) throws SQLException
/*    */   {
/* 30 */     Map params = new HashMap();
/* 31 */     params.put("openId", openId);
/* 32 */     if (flag.booleanValue()) {
/* 33 */       params.put("key", flag);
/*    */     }
/* 35 */     return getGsonOfParams("customerMessageType", params, false);
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\新建文件夹\WEB-INF\classes\
 * Qualified Name:     com.qmsk.business.message.customerMessageType.dao.CustomerMessageTypeDAO
 * JD-Core Version:    0.5.3
 */